import request from '@/utils/request'

// 查询车辆列表
export function listCar(query) {
  return request({
    url: '/syst/car/list',
    method: 'get',
    params: query
  })
}


// 查询车辆列表
export function getCarList(query) {
  return request({
    url: '/syst/car/getCarList',
    method: 'get',
    params: query
  })
}

// 查询车辆详细
export function getCar(carId) {
  return request({
    url: '/syst/car/' + carId,
    method: 'get'
  })
}

// 新增车辆
export function addCar(data) {
  return request({
    url: '/syst/car',
    method: 'post',
    data: data
  })
}

// 修改车辆
export function updateCar(data) {
  return request({
    url: '/syst/car',
    method: 'put',
    data: data
  })
}

// 删除车辆
export function delCar(carId) {
  return request({
    url: '/syst/car/' + carId,
    method: 'delete'
  })
}

// 查询车辆类型
export function typeList() {
  return request({
    url: '/syst/car/typeList',
    method: 'get'
  })
}

// 查询车辆电机
export function motorList() {
  return request({
    url: '/syst/car/motorList',
    method: 'get'
  })
}

// 查询车辆电池
export function cellList() {
  return request({
    url: '/syst/car/cellList',
    method: 'get'
  })
}

// 查询电子围栏
export function railList() {
  return request({
    url: '/syst/car/railList',
    method: 'get'
  })
}


// 发送数据
export function sendSj() {
  return request({
    url: '/syst/car/sendSj',
    method: 'get'
  })
}

// 停止发送数据
export function sendSj2() {
  return request({
    url: '/syst/car/sendSj2',
    method: 'get'
  })
}

// 停止发送数据
export function getSj() {
  return request({
    url: '/syst/car/getSj',
    method: 'get'
  })
}



